package com.g1.gzbooksingle.controller;


import com.g1.gzbooksingle.model.DgCardSale;
import com.g1.gzbooksingle.service.IDgBookInfoService;
import com.g1.gzbooksingle.service.IDgCardSaleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 卡券表 前端控制器
 * </p>
 *
 * @author admin
 * @since 2021-10-12
 */
@RestController
@Api(tags = "卡卷信息接口")
@RequestMapping("/gzbooksingle/dgCardSale")
public class DgCardSaleController {
    @Autowired
    private IDgCardSaleService dgCardSaleService;

    /**
     * 查询卡卷信息
     * @return
     */
    @GetMapping
    @ApiOperation("查询全部卡卷信息")
    public List<DgCardSale> getList(){
        List<DgCardSale> list = dgCardSaleService.getCarSale();
        return list;
    }



}
